import getlink from '@/api/getapi.js'
let commdata={
    state: {
        arr:[]
    },
    mutations: {
        uparr(state,payload){
            state.arr=payload.data
        }
    },
    actions: {
        updata(context){
           getlink("/data/list/community").then((ok)=>{
            context.commit("uparr",{data:ok.data})
               console.log(ok.data);
           })
        }
    },
}
export default commdata